<template>
    <ArticleCurrency></ArticleCurrency>
</template>

<script>
    import {mapState} from 'vuex'
    import ArticleCurrency from '@c/space/ArticleCurrency'
    export default {
        components:{
            ArticleCurrency,
        },
        computed:{
            ...mapState({
                userInfo: state => state.userModule.userInfo
            })
        },
        created(){
            this.articleSchool(31)
        },
        data() {
            return {
                activeName: 'schoolProfile',
                currentPage:1,
                isDetailShow:false,
                pageSize:10,
                total: 0
            };
        },
        methods: {
            articleSchool(params){
                this.$store.dispatch('articleModule/articleSchool',{
                    classifyid: null,
                    dictype: params,
                    draft: 1,
                    limit: this.pageSize,
                    page: this.currentPage,
                    search: null,
                    sortType: 0,
                    userid: this.userInfo.id,
                    yearandmonth: null
                }).then(res =>{})
            },
            handleClick(tab, event) {
            },
            handleSizeChange(val) {
                this.pageSize = val
            },
            handleCurrentChange(val) {
                this.currentPage = val
            }
        }
    }
</script>

<style lang="scss" scoped>
.schoolProfileBox{
    background-color: white;
    box-sizing: border-box;
    padding: 0 10px;
    min-height: 70vh;
    .content{
        font-size: 14px;
        color: #303133;
        margin-bottom: 10px;
        text-align: left;
        cursor: pointer;
        padding-bottom: 10px;
        border-bottom: 1px solid #ccc;
        label{
            cursor: pointer;
        }
        .time{
            font-size: 12px;
            float: right;
            margin-top: 5px;
        }
    }

    .clearFix::after{
        content: "";
        display: block;
        width: 100%;
        font-size: 0;
        clear: both;
    }
}
</style>